home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / cmln1085.arc / TABLE1.HDC < prev    next >
Text File  |  1986-02-27  |  14KB  |  199 lines

  1.  
  2.  
  3.                                Table 1.  Turbo Graphics Shell.  Listed below are GXS functional groups
  4.                                  with codes, Turbo PASCAL procedure names, and a brief description of
  5.                                 each (in lieu of excessive documentation within the PASCAL listings).
  6.  
  7.                                                                                                                                 
  8.  
  9.     Group and                               GXS                  Turbo                                 Brief
  10.     GSX Function Name                     Function             Procedure                             Description
  11.                                            Opcode        Implemented in Shell
  12.                                                                                                                                 
  13.  
  14.     WORKSTATION FUNCTIONS...
  15.          open work station                   1                openstation                  loads proper driver, returns
  16.                                                                                            optional device information
  17.  
  18.          close work station                  2                closestation                 terminates graphics I/O to device
  19.  
  20.          clear work station                  3                clearstation                 erase screen, top of form, or load
  21.                                                                                            plotter
  22.  
  23.          update work station                 4                updatestation                graphics commands being queued by a
  24.                                                                                            driver are immediately executed
  25.  
  26.     LINE DRAWING FUNCTIONS...
  27.          polyline                            6                polyline                     connects a sequence of points with
  28.                                                                                            successive lines using current line
  29.                                                                                            color, type, and width
  30.  
  31.          set polyline type                  15                setlinetype                  selects one of at least 5 line styles,
  32.                                                                                            e.g., solid, dashed, dotted, etc.,
  33.                                                                                            for subsequent lines, based upon
  34.                                                                                            argument
  35.  
  36.          set polyline width                 16                setlinewidth                 selects a line width in NDC units for
  37.                                                                                            subsequent lines drawn
  38.  
  39.  
  40.     POINT MARKING FUNCTIONS...
  41.          polymarker                          7                polymarker                   similar to polyline except it places
  42.                                                                                            a current symbol marker at each of
  43.                                                                                            specified points.  No lines connect
  44.                                                                                            them.  Marker can be set for various
  45.                                                                                            characters.
  46.  
  47.          set polymarker type                18                setmarkertype                allows one of + . * o x to be chosen
  48.                                                                                            as the marker type
  49.  
  50.          set polymarker scale               19                setmarkerscale               marker can be chosen with a specified
  51.                                                                                            height in NDC units.  Returns actual
  52.                                                                                            height approx to specified height.
  53.  
  54.     GENERALIZED DRAWING PRIMITIVES...
  55.          bar                                 11               bar                          draws bar with lower left and upper
  56.                                              contrl[6]=1                                   right NDC coords specified.  Fills
  57.                                                                                            with current fill area attributes.
  58.  
  59.          arc                                 11               arc                          draws arc from one point to another
  60.                                              contrl[6]=2                                   with several ways to specify it.
  61.                                                                                            (check which devices support this
  62.                                                                                            feature)
  63.  
  64.  
  65.  
  66.  
  67.                                                                                                                                  2
  68.  
  69.          pie slice                           11               pie                          similar to arc but connects arc to
  70.                                              contrl [6] = 3                                center and uses current fill
  71.                                                                                            attributes.  (check for device
  72.                                                                                            support)
  73.  
  74.          circle                              11               circle                       draws circle using center and radius
  75.                                              contrl [6] = 4                                and uses current fill attributes
  76.  
  77.     FILLED AREA FUNCTIONS...
  78.          fill area                            9               fillarea                     similar to polyline but fills polygon
  79.                                                                                            with current fill color.  Also con-
  80.                                                                                            nects first and last point specified.
  81.                                                                                            If fill is not supported, it outlines
  82.                                                                                            polygon using current color.
  83.  
  84.          cell array                          10               cellarray                    define a rectangular array of cells
  85.                                                                                            and each cell with a choice of any
  86.                                                                                            current colors.
  87.  
  88.          set fill interior                   23               setfillstyle                 choose current fill style as solid,
  89.          style                                                                             hollow, hatch, or pattern
  90.  
  91.          set fill interior                   24               setfillpattern               choose pattern style (if set) from
  92.          pattern type                                                                      lightest to darkest dither
  93.  
  94.          set fill interior                   24               setfillhatch                 choose hatch style (if set) from
  95.          hatch type                                                                        several options
  96.  
  97.     COLOR FUNCTIONS...
  98.          set color                           14               setcolor                     define RGB values for color indices
  99.          representation                                                                    (Rainbow 0-15)
  100.  
  101.          set polyline                        17               setlinecolor                 choose one of the current RGB
  102.          color index                                                                       colors defined by setcolor for subse-
  103.                                                                                            quent lines drawn.
  104.  
  105.          set polymarker                      20               setmarkercolor               choose one of the current colors for
  106.          color index                                                                       subsequent markers display
  107.  
  108.          set text color                      22               settextcolor                 choose a current color for subsequent
  109.          index                                                                             text display
  110.  
  111.          set fill color                      25               setfillcolor                 choose a current color for subsequent
  112.          index                                                                             polygon fills
  113.  
  114.     TEXT FUNCTIONS...
  115.          Text                                 8               showtext                     display string of characters on
  116.                                                                                            current device
  117.  
  118.          set character                       12               settextheight                choose height in NDC units for subse-
  119.          height                                                                            quent text
  120.  
  121.          set character up                    13               settextangle                 choose baseline angle for text in
  122.          vector                                                                            NDC units (0-3600), 0=east
  123.  
  124.          set text font                       21               setfont                      choose type styles for text.
  125.                                                                                            Styles are available from informa-
  126.                                                                                            tion returned in the OPENSTATION
  127.                                                                                            call.
  128.  
  129.  
  130.  
  131.  
  132.  
  133.                                                                                                                                  3
  134.  
  135.     MODE CONTROL FUNCTIONS...
  136.          set writing                         32               setwritingmode               select pixel replacement mode for
  137.          mode                                                                              fills (replace, overstrike, comple-
  138.                                                                                            ment, erase)
  139.  
  140.     INPUT FUNCTIONS...
  141.          set input                           33               setinputmode                 select request or sample mode and the
  142.          mode                                                                              type device (locator, valuator,
  143.                                                                                            choice, string)
  144.  
  145.          input locator                       28               inputlocator                 return position of locator (NDC) also
  146.                                                                                            select specific device (pen, mouse,
  147.                                                                                            tablet, ejtc.) for use in request or
  148.                                                                                            sample mode
  149.  
  150.          input valuator                      28               inputvaluator                return current value (0-32767) of
  151.                                                                                            valuator device.  Also, select
  152.                                                                                            valuator device for use in request
  153.                                                                                            mode or sample mode
  154.  
  155.          input choice                        30               inputchoice                  return measure of specified choice
  156.                                                                                            device (function keys, etc.) in
  157.                                                                                            request or sample mode
  158.  
  159.          input string                        31               inputstring                  return string and length from
  160.                                                                                            string input device (keybd, etc.)
  161.                                                                                            in request or sample mode.
  162.  
  163.     STATUS INQUIRY FUNCTIONS...
  164.          Inquire Color                       26               inquirecolors                returns RGB intensities for a
  165.          Representation                                                                    requested color index, actual or
  166.                                                                                            specified
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.